home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="EUC-KR"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>mod_alias - Apache HTTP Server</title> <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> <link href="../images/favicon.ico" rel="shortcut icon" /></head> <body> <div id="page-header"> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p> <p class="apache">Apache HTTP Server Version 2.2</p> <img alt="" src="../images/feather.gif" /></div> <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> <div id="path"> <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">╕≡╡Γ</a></div> <div id="page-content"> <div id="preamble"><h1>╛╞╞──í ╕≡╡Γ mod_alias</h1> <div class="toplang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/mod/mod_alias.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ja/mod/mod_alias.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/mod/mod_alias.html" title="Korean"> ko </a></p> </div> <div class="outofdate">└╠ ╣«╝¡┤┬ ├╓╜┼╞╟ ╣°┐¬└╠ ╛╞┤╒┤╧┤┘. ├╓▒┘┐í ║»░µ╡╚ │╗┐δ└║ ┐╡╛ε ╣«╝¡╕ª ┬ⁿ░φ╟╧╝╝┐Σ.</div> <table class="module"><tr><th><a href="module-dict.html#Description">╝│╕φ:</a></th><td>╞─└╧╜├╜║┼█└╟ ┤┘╕Ñ ║╬║╨╡Θ└╗ ╣«╝¡ ░Φ├■▒╕┴╢┐í ╞≈╟╘╟╧░φ, URL ╕«┤┘└╠╖║╝╟└╗ ┴ª░°╟╤┤┘</td></tr> <tr><th><a href="module-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="module-dict.html#ModuleIdentifier">╕≡╡Γ╕φ:</a></th><td>alias_module</td></tr> <tr><th><a href="module-dict.html#SourceFile">╝╥╜║╞─└╧:</a></th><td>mod_alias.c</td></tr></table> <h3>┐Σ╛α</h3> <p>└╠ ╕≡╡Γ└╠ ┴ª░°╟╧┤┬ ┴÷╜├╛ε╡Θ└╗ ╗τ┐δ╟╧┐⌐ ╝¡╣÷░í ┐Σ├╗└╗ ╣▐└╗╢º URL└╗ ╝÷┴ñ╟╧░┼│¬ ┴╢└█╟╥ ╝÷ └╓┤┘. <code class="directive"><a href="#alias">Alias</a></code>┐═ <code class="directive"><a href="#scriptalias">ScriptAlias</a></code> ┴÷╜├╛ε┤┬ URL└╗ ╞─└╧╜├╜║┼█ ░µ╖╬╖╬ ┤δ└└╟╤┤┘. ▒╫╖í╝¡ <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ╛╞╖í┐í ╛°┤┬ │╗┐δ└╗ └Ñ└╕╖╬ ╝¡║±╜║╟╥ ╝÷ └╓┤┘. ╢╟, <code class="directive"><a href="#scriptalias">ScriptAlias</a></code> ┴÷╜├╛ε┤┬ ┴÷┴ñ╟╤ ╡≡╖║┼Σ╕«┐í CGI ╜║┼⌐╕│╞«╣█┐í ╛°┤┘░φ ╛╦╕░┤┘.</p> <p><code class="directive"><a href="#redirect">Redirect</a></code> ┴÷╜├╛ε┤┬ ┼¼╢≤└╠╛≡╞«┐í░╘ ┤┘╕Ñ URL╖╬ ╗⌡╖╬┐ε ┐Σ├╗└╗ ╟╧╡╡╖╧ ┴÷╜├╟╤┤┘. └┌┐°└╗ ╗⌡╖╬┐ε └σ╝╥╖╬ ┐┼▒Σ ░µ┐∞ └┌┴╓ ╗τ┐δ╟╤┤┘.</p> <p><code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code>┤┬ ░ú┤▄╟╤ URL ┴╢└█└╗ └º╟╪ ╝│░Φ╡╟╛·┤┘. ┴·└╟╣«└┌┐¡ ┴╢└█░· ░░└║ ║╣└Γ╟╤ └█╛≈└║ <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>░í ┴ª░°╟╧┤┬ ▒Γ┤╔└╗ └╠┐δ╟╧╢≤.</p> </div> <div id="quickview"><h3 class="directives">┴÷╜├╛ε╡Θ</h3> <ul id="toc"> <li><img alt="" src="../images/down.gif" /> <a href="#alias">Alias</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#aliasmatch">AliasMatch</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#redirect">Redirect</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#redirectmatch">RedirectMatch</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#redirectpermanent">RedirectPermanent</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#redirecttemp">RedirectTemp</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#scriptalias">ScriptAlias</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#scriptaliasmatch">ScriptAliasMatch</a></li> </ul> <h3>┴╓┴ª</h3> <ul id="topics"> <li><img alt="" src="../images/down.gif" /> <a href="#order">├│╕« ╝°╝¡</a></li> </ul><h3>┬ⁿ░φ</h3> <ul class="seealso"> <li><code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code></li> <li><a href="../urlmapping.html">URL└╗ ╞─└╧╜├╜║┼█┐í ┤δ└└</a></li> </ul></div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="order" id="order">├│╕« ╝°╝¡</a></h2> <p>╝¡╖╬ ┤┘╕Ñ ╗τ┐δ└σ╝╥┐í╝¡ Alias┐═ Redirect╕ª ╗τ┐δ╟╧╕Θ ┤┘╕Ñ ┴÷╜├╛ε┐═ ░░└╠ ╟Ñ┴╪ <a href="../sections.html#mergin">░ß╟╒ ╣µ╣²</a>┐í ╡√╢≤ ├│╕«╟╤┤┘. ▒╫╖»│¬ ░░└║ ╗τ┐δ└σ╝╥┐í (┐╣╕ª ╡Θ╛ε, ░░└║ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ╝╜╝╟┐í) Alias┐═ Redirect╕ª ╗τ┐δ╟╧╕Θ ╛╞╖í ╝°╝¡┤δ╖╬ ├│╕«╟╤┤┘.</p> <p>╕╒└· ╕≡╡τ Redirect╕ª ├│╕«╟╤ ╚─ Alias╕ª ├│╕«╟╤┤┘. ▒╫╖í╝¡ <code class="directive"><a href="#redirect">Redirect</a></code>│¬ <code class="directive"><a href="#redirectmatch">RedirectMatch</a></code>┐í ╟╪┤τ╟╧┤┬ ┐Σ├╗└║ └²┤δ╖╬ Alias╟╧┴÷ ╛╩┤┬┤┘. ▒╫╕«░φ Alias┐═ Redirect┤┬ ╝│┴ñ╞─└╧┐í╝¡ ├╣╣°┬░╖╬ │¬┐└┤┬ ░═└╗ ╗τ┐δ╟╤┤┘.</p> <p>▒╫╖í╝¡ ┐⌐╖» ┴÷╜├╛ε░í ╡┐└╧╟╤ ╟╧└º░µ╖╬┐í ╟╪┤τ╟╧┤┬ ░µ┐∞ ╕≡╡τ ┴÷╜├╛ε╕ª └√┐δ╟╧▒Γ└º╟╪╝¡┤┬ ░í└σ ╗≤╝╝╟╤ ░µ╖╬╕ª ╕╒└· ╗τ┐δ╟╪╛▀ ╟╤┤┘. ┐╣╕ª ╡Θ╛ε, ┤┘└╜ ╝│┴ñ└║ └╟╡╡╟╤┤δ╖╬ ╡┐└█╟╤┤┘:</p> <div class="example"><p><code> Alias /foo/bar /baz<br /> Alias /foo /gaq </code></p></div> <p>▒╫╖»│¬ └º└╟ ╡╬ ┴÷╜├╛ε ╝°╝¡╕ª ╣┘▓┘╕Θ <code>/foo/bar</code> <code class="directive"><a href="#alias">Alias</a></code> └╠└ⁿ┐í <code>/foo</code> <code class="directive"><a href="#alias">Alias</a></code>╕ª └√┐δ╟╧╣╟╖╬ ╟╫╗≤ ╡╬╣°┬░ ┴÷╜├╛ε╕ª ╣½╜├╟╤┤┘.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="Alias" id="Alias">Alias</a> <a name="alias" id="alias">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>URL└╗ ╞»┴ñ ╞─└╧╜├╜║┼█ └σ╝╥╖╬ ┤δ└└╟╤┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>Alias <var>URL-path</var> <var>file-path</var>|<var>directory-path</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p><code class="directive">Alias</code> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧╕Θ ╞─└╧╜├╜║┼█┐í╝¡ <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ╣█┐í └╓┤┬ ╣«╝¡╡╡ ╝¡║±╜║╟╥ ╝÷ └╓┤┘. <var>url-path</var>╖╬ ╜├└█╟╧┤┬ (%╖╬ └╬─┌╡∙╡╚) URL└╗ <var>directory-path</var>╖╬ ╜├└█╟╧┤┬ ╞─└╧┐í ┤δ└└╟╤┤┘.</p> <div class="example"><h3>┐╣┴ª:</h3><p><code> Alias /image /ftp/pub/image </code></p></div> <p>http://myserver/image/foo.gif╕ª ┐Σ├╗╟╧╕Θ ╝¡╣÷┤┬ /ftp/pub/image/foo.gif ╞─└╧└╗ │╤░▄┴╪┤┘.</p> <p><var>url-path</var> │í┐í /╕ª ╞≈╟╘╟╧╕Θ, URL │í┐í /╕ª ╗τ┐δ╟╪╛▀╕╕ ┐╡╟Γ└╠ └╓└╜└╗ ┴╓└╟╟╧╢≤. ┴∩, <code>Alias /icons/ /usr/local/apache/icons/</code> ╝│┴ñ└║ url <code>/icons</code>┐═ ░ⁿ░Φ░í ╛°┤┘.</p> <p>┤δ└└└╟ <em>┤δ╗≤</em>└╗ ╞≈╟╘╟╧┤┬ ┐⌐╖» <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ╝╜╝╟└╠ ╟╩┐Σ╟╥┴÷╡╡ ╕≡╕Ñ┤┘. └╠ ┴÷╜├╛ε┤┬ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ╝╜╝╟└╗ ░╦╗τ╟╧▒Γ └ⁿ┐í ├│╕«╟╧╣╟╖╬, ┤δ└└└╟ ┤δ╗≤╕╕ ╝╜╝╟└╟ ┐╡╟Γ└╗ ╣▐┤┬┤┘. (▒╫╖»│¬ <code class="directive"><a href="../mod/core.html#location"><Location></a></code> ╝╜╝╟└║ └╠ ┴÷╜├╛ε╕ª ├│╕«╟╧▒Γ └ⁿ┐í ╟╤╣°╕╕ ░╦╗τ╟╧╣╟╖╬ ┴÷┴ñ╟╤ URL └╠╟╧ └ⁿ├╝┐í ┐╡╟Γ└╗ ┴╪┤┘.)</p> <p>╞»╚≈ <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ╣█┐í └╓┤┬ ╡≡╖║┼Σ╕«╖╬ <code>Alias</code>╕ª ╕╕╡Θ╛·┤┘╕Θ, ┴≈┴ó ┤δ╗≤ ╡≡╖║┼Σ╕«└╟ ┴ó▒┘└╗ ╟π┐δ╟╪┴α╛▀ ╟╤┤┘.</p> <div class="example"><h3>┐╣┴ª:</h3><p><code> Alias /image /ftp/pub/image<br /> <Directory /ftp/pub/image><br /> <span class="indent"> Order allow,deny<br /> Allow from all<br /> </span> </Directory> </code></p></div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="AliasMatch" id="AliasMatch">AliasMatch</a> <a name="aliasmatch" id="aliasmatch">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╧┐⌐ URL└╗ ╞─└╧╜├╜║┼█ └σ╝╥╖╬ ┤δ└└╟╤┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>AliasMatch <var>regex</var> <var>file-path</var>|<var>directory-path</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ <code class="directive"><a href="#alias">Alias</a></code>┐═ ░░┴÷╕╕, ░ú┤▄╚≈ URL└╟ ╛╒║╬║╨╕╕ ║±▒│╟╧┤┬ ┤δ╜┼ ╟Ñ┴╪ ┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╤┤┘. ┴÷┴ñ╟╤ ┴ñ▒╘╟Ñ╟÷╜─└╗ URL ░µ╖╬┐═ ║±▒│╟╧┐⌐ ╕┬┤┘╕Θ, ╝¡╣÷┤┬ ░²╚ú╖╬ ╣¡└║ ║╬║╨└╗ ┤δ├╝╟╧┐⌐ ╞─└╧╕φ└╕╖╬ ╗τ┐δ╟╤┤┘. ┐╣╕ª ╡Θ╛ε, ┤┘└╜░· ░░└╠ <code>/icons</code> ╡≡╖║┼Σ╕«╕ª ╗τ┐δ╟╥ ╝÷ └╓┤┘:</p> <div class="example"><p><code> AliasMatch ^/icons(.*) /usr/local/apache/icons$1 </code></p></div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="Redirect" id="Redirect">Redirect</a> <a name="redirect" id="redirect">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>┼¼╢≤└╠╛≡╞«░í ┤┘╕Ñ URL┐í ┴ó╝╙╟╧╡╡╖╧ ┐Σ├╗╟╧┤┬ ┐▄║╬ ╕«┤┘└╠╖║╝╟└╗ ║╕│╜┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>Redirect [<var>status</var>] <var>URL-path</var> <var>URL</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override ┐╔╝╟:</a></th><td>FileInfo</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p>Redirect ┴÷╜├╛ε┤┬ └╠└ⁿ URL└╗ ╗⌡╖╬┐ε URL╖╬ ┤δ└└╟╤┤┘. ┼¼╢≤└╠╛≡╞«┐í░╘ ╗⌡╖╬┐ε URL└╗ ║╕│╗░φ, ┼¼╢≤└╠╛≡╞«┤┬ ╗⌡╖╬┐ε ┴╓╝╥╖╬ ┤┘╜├ ╟╤╣° ┴ó╝╙╟╤┤┘. (%╖╬ └╬─┌╡∙╡╚) <var>URL-path</var>╖╬ ╜├└█╟╧┤┬ ┐Σ├╗└╗ ╣▐└╕╕Θ (%╖╬ └╬─┌╡∙╡╚) <var>URL</var>╖╬ ╜├└█╟╧┤┬ ╗⌡╖╬┐ε URL╖╬ ╕«┤┘└╠╖║╝╟ ┐└╖∙╕ª ║╕│╜┤┘.</p> <div class="example"><h3>┐╣┴ª:</h3><p><code> Redirect /service http://foo2.bar.com/service </code></p></div> <p>┼¼╢≤└╠╛≡╞«░í http://myserver/service/foo.txt╕ª ┐Σ├╗╟╧╕Θ ┤δ╜┼ http://foo2.bar.com/service/foo.txt┐í ┴ó▒┘╟╧╢≤┤┬ └└┤Σ└╗ ╣▐┤┬┤┘.</p> <div class="note"><h3>┴╓└╟</h3> <p>Redirect ┴÷╜├╛ε┤┬ ╝│┴ñ╞─└╧┐í╝¡ │¬┐└┤┬ ╝°╝¡┐═ ░ⁿ░Φ╛°└╠ Alias┐═ ScriptAlias ┴÷╜├╛ε║╕┤┘ ┐∞╝▒╝°└º░í │⌠┤┘. ╢╟, .htaccess ╞─└╧└╠│¬ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ╝╜╝╟┐í╝¡ ╗τ┐δ╟╧┤⌡╢≤╡╡ <var>URL-path</var>┐í┤┬ ╗≤┤δ░µ╖╬░í ╛╞┤╧╢≤ ╣▌╡σ╜├ ┐╧└ⁿ╟╤ URL└╗ ╗τ┐δ╟╪╛▀ ╟╤┤┘.</p></div> <p><var>status</var> ╛╞▒╘╕╒╞«╕ª ┴÷┴ñ╟╧┴÷╛╩└╕╕Θ, "└╙╜├ (temporary)" (HTTP ╗≤┼┬ 302) ╕«┤┘└╠╖║╝╟└╗ ║╕│╜┤┘. ┴∩, ┼¼╢≤└╠╛≡╞«┐í░╘ └┌┐°└╗ └╙╜├╖╬ ┐┼░σ┤┘░φ ╛╦╕░┤┘. <var>status</var> ╛╞▒╘╕╒╞«╕ª ╗τ┐δ╟╧┐⌐ ┤┘╕Ñ HTTP ╗≤┼┬─┌╡σ╕ª ╣▌╚»╟╥ ╝÷ └╓┤┘:</p> <dl> <dt>permanent</dt> <dd>└┌┐°└╗ ┐╧└ⁿ╚≈ ┐┼░σ└╜└╗ ╢µ╟╧┤┬ ┐╡▒╕ ╕«┤┘└╠╖║╝╟ ╗≤┼┬╕ª (301) ╣▌╚»╟╤┤┘.</dd> <dt>temp</dt> <dd>└╙╜├ ╕«┤┘└╠╖║╝╟ ╗≤┼┬╕ª (302) ╣▌╚»╟╤┤┘. ▒Γ║╗░¬└╠┤┘.</dd> <dt>seeother</dt> <dd>└┌┐°└╠ ▒│├╝╡╟╛·└╜└╗ ╢µ╟╧┤┬ "┬ⁿ┴╢ (See Other)" ╗≤┼┬╕ª (303) ╣▌╚»╟╤┤┘.</dd> <dt>gone</dt> <dd>└┌┐°└╠ ┐╡▒╕╚≈ ╗Φ┴ª╡╟╛·└╜└╗ ╢µ╟╧┤┬ "╝╥╕Ω (Gone)" ╗≤┼┬╕ª (410) ╣▌╚»╟╤┤┘. └╠ ╗≤┼┬╕ª ╗τ┐δ╟╧╕Θ <var>URL</var> ╛╞▒╘╕╒╞«╕ª ╗τ┐δ╟╥ ╝÷ ╛°┤┘.</dd> </dl> <p><var>status</var>┐í ╝²└┌ ╗≤┼┬─┌╡σ╕ª ╗τ┐δ╟╧┐⌐ ┤┘╕Ñ ╗≤┼┬─┌╡σ╡╡ ╣▌╚»╟╥ ╝÷ └╓┤┘. ╗≤┼┬░í 300░· 399 ╗τ└╠╢≤╕Θ <var>URL</var> ╛╞▒╘╕╒╞«╕ª ╗τ┐δ╟╪╛▀ ╟╧░φ, ╛╞┤╧╢≤╕Θ ╗²╖½╟╪╛▀ ╟╤┤┘. ┤▄, ╛╞╞──í ─┌╡σ┐í ╗≤┼┬░í ┴ñ└╟╡╟└╓╛ε╛▀ ╟╤┤┘ (http_protocol.c└╟ <code>send_error_response</code> ╟╘╝÷ ┬ⁿ░φ).</p> <div class="example"><h3>┐╣┴ª:</h3><p><code> Redirect permanent /one http://example.com/two<br /> Redirect 303 /three http://example.com/other </code></p></div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="RedirectMatch" id="RedirectMatch">RedirectMatch</a> <a name="redirectmatch" id="redirectmatch">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>╟÷└τ URL└╠ ┴ñ▒╘╟Ñ╟÷╜─┐í ╟╪┤τ╟╧╕Θ ┐▄║╬ ╕«┤┘└╠╖║╝╟└╗ ║╕│╜┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>RedirectMatch [<var>status</var>] <var>regex</var> <var>URL</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override ┐╔╝╟:</a></th><td>FileInfo</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ <code class="directive"><a href="#redirect">Redirect</a></code>┐═ ░░┴÷╕╕, ░ú┤▄╚≈ URL└╟ ╛╒║╬║╨╕╕ ║±▒│╟╧┤┬ ┤δ╜┼ ╟Ñ┴╪ ┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╤┤┘. ┴÷┴ñ╟╤ ┴ñ▒╘╟Ñ╟÷╜─└╗ URL ░µ╖╬┐═ ║±▒│╟╧┐⌐ ╕┬┤┘╕Θ, ╝¡╣÷┤┬ ░²╚ú╖╬ ╣¡└║ ║╬║╨└╗ ┤δ├╝╟╧┐⌐ ╞─└╧╕φ└╕╖╬ ╗τ┐δ╟╤┤┘. ┐╣╕ª ╡Θ╛ε, ┤┘└╜└║ ╕≡╡τ GIF ╞─└╧ ┐Σ├╗┐í ┤δ╟╪ ┤┘╕Ñ ╝¡╣÷└╟ ║±╜┴╟╤ └╠╕º└╗ ░í┴° JPEG ╞─└╧╖╬ ╕«┤┘└╠╖║╝╟└╗ ║╕│╜┤┘:</p> <div class="example"><p><code> RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg </code></p></div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="RedirectPermanent" id="RedirectPermanent">RedirectPermanent</a> <a name="redirectpermanent" id="redirectpermanent">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>┼¼╢≤└╠╛≡╞«░í ┤┘╕Ñ URL┐í ┴ó╝╙╟╧╡╡╖╧ ┐Σ├╗╟╧┤┬ ┐▄║╬ ┐╡▒╕ ╕«┤┘└╠╖║╝╟└╗ ║╕│╜┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>RedirectPermanent <var>URL-path</var> <var>URL</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override ┐╔╝╟:</a></th><td>FileInfo</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ ┼¼╢≤└╠╛≡╞«┐í░╘ ╕«┤┘└╠╖║╝╟└╠ ┐╡▒╕└√└╙└╗ (╗≤┼┬ 301) ╛╦╕░┤┘. <code>Redirect permanent</code>┐═ ┴ñ╚«╚≈ ░░┤┘.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="RedirectTemp" id="RedirectTemp">RedirectTemp</a> <a name="redirecttemp" id="redirecttemp">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>┼¼╢≤└╠╛≡╞«░í ┤┘╕Ñ URL┐í ┴ó╝╙╟╧╡╡╖╧ ┐Σ├╗╟╧┤┬ ┐▄║╬ └╙╜├ ╕«┤┘└╠╖║╝╟└╗ ║╕│╜┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>RedirectTemp <var>URL-path</var> <var>URL</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override ┐╔╝╟:</a></th><td>FileInfo</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ ┼¼╢≤└╠╛≡╞«┐í░╘ ╕«┤┘└╠╖║╝╟└╠ └╙╜├└√└╙└╗ (╗≤┼┬ 302) ╛╦╕░┤┘. <code>Redirect temp</code>┐═ ┴ñ╚«╚≈ ░░┤┘.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="ScriptAlias" id="ScriptAlias">ScriptAlias</a> <a name="scriptalias" id="scriptalias">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>URL└╗ ╞»┴ñ ╞─└╧╜├╜║┼█ └σ╝╥╖╬ ┤δ└└╟╧░φ ┤δ╗≤└╠ CGI ╜║┼⌐╕│╞«╢≤░φ ╛╦╕░┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>ScriptAlias <var>URL-path</var> <var>file-path</var>|<var>directory-path</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p><code class="directive">ScriptAlias</code> ┴÷╜├╛ε┤┬ <code class="directive"><a href="#alias">Alias</a></code> ┴÷╜├╛ε┐═ ║±╜┴╟╧┴÷╕╕, ├▀░í╖╬ ┤δ╗≤ ╡≡╖║┼Σ╕«┐í <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>└╟ cgi-script ╟┌╡Θ╖»░í ├│╕«╟╥ CGI ╜║┼⌐╕│╞«░í └╓┤┘░φ ╛╦╕░┤┘. <var>URL-path</var>╖╬ ╜├└█╟╧┤┬ (%╖╬ └╬─┌╡∙╡╚) URL└╗ ╞─└╧╜├╜║┼█└╟ └²┤δ░µ╖╬└╬ ╡╬╣°┬░ ╛╞▒╘╕╒╞«╖╬ ╜├└█╟╧┤┬ ╜║┼⌐╕│╞«┐í ┤δ└└╟╤┤┘.</p> <div class="example"><h3>┐╣┴ª:</h3><p><code> ScriptAlias /cgi-bin/ /web/cgi-bin/ </code></p></div> <p><code>http://myserver/cgi-bin/foo</code>╕ª ┐Σ├╗╟╧╕Θ ╝¡╣÷┤┬ <code>/web/cgi-bin/foo</code> ╜║┼⌐╕│╞«╕ª ╜╟╟α╟╤┤┘.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="ScriptAliasMatch" id="ScriptAliasMatch">ScriptAliasMatch</a> <a name="scriptaliasmatch" id="scriptaliasmatch">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╧┐⌐ URL└╗ ╞»┴ñ ╞─└╧╜├╜║┼█ └σ╝╥╖╬ ┤δ└└╟╧░φ ┤δ╗≤└╠ CGI ╜║┼⌐╕│╞«╢≤░φ ╛╦╕░┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>ScriptAliasMatch <var>regex</var> <var>file-path</var>|<var>directory-path</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Base</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_alias</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ <code class="directive"><a href="#scriptalias">ScriptAlias</a></code>┐═ ░░┴÷╕╕, ░ú┤▄╚≈ URL└╟ ╛╒║╬║╨╕╕ ║±▒│╟╧┤┬ ┤δ╜┼ ╟Ñ┴╪ ┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╤┤┘. ┴÷┴ñ╟╤ ┴ñ▒╘╟Ñ╟÷╜─└╗ URL ░µ╖╬┐═ ║±▒│╟╧┐⌐ ╕┬┤┘╕Θ, ╝¡╣÷┤┬ ░²╚ú╖╬ ╣¡└║ ║╬║╨└╗ ┤δ├╝╟╧┐⌐ ╞─└╧╕φ└╕╖╬ ╗τ┐δ╟╤┤┘. ┐╣╕ª ╡Θ╛ε, ┤┘└╜░· ░░└╠ ╟Ñ┴╪└√└╬ <code>/cgi-bin</code>└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘:</p> <div class="example"><p><code> ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1 </code></p></div> </div> </div> <div class="bottomlang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/mod/mod_alias.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ja/mod/mod_alias.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/mod/mod_alias.html" title="Korean"> ko </a></p> </div><div id="footer"> <p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p></div> </body></html>